package com.haibeimohe.util;

import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;

/**
 * 上下文工厂
 * @author hassan
 */
public class ApplicationContextFactory {

    private static ApplicationContext context = null;

    public static void setApplicationContext(ApplicationContext applicationContext) throws BeansException {
        context = applicationContext;
    }

    public static ApplicationContext getApplicationContext(){
        return context;
    }

}
